-- GENERATED SPELL FOR [Infinite Executioner] --


function spell0_18994(pUnit, Event) --@Corrupt Medivh,n/a--
pUnit:FullCastSpellOnTarget(31326,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18994', 0, 1)
end

function spell1_18994(pUnit, Event) --@Overpower,n/a--
pUnit:FullCastSpellOnTarget(17198,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18994', 0, 1)
end

function spell2_18994(pUnit, Event) --@Overpower,n/a--
pUnit:FullCastSpellOnTarget(37321,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18994', 0, 1)
end

function spell3_18994(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(15580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18994', 612, 1)
end

function spell4_18994(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(34920,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18994', 591, 1)
end

function Sorts_18994(pUnit, Event)
local choix_sorts_18994 = math.random(0, 4)
if choix_sorts_18994 == 0 then
pUnit:RegisterEvent('spell0_18994', 1, 1)
end
if choix_sorts_18994 == 1 then
pUnit:RegisterEvent('spell1_18994', 1, 1)
end
if choix_sorts_18994 == 2 then
pUnit:RegisterEvent('spell2_18994', 1, 1)
end
if choix_sorts_18994 == 3 then
pUnit:RegisterEvent('spell3_18994', 1, 1)
end
if choix_sorts_18994 == 4 then
pUnit:RegisterEvent('spell4_18994', 1, 1)
end
end

function mob18994_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18994', math.random(1500, 3000), 1)
end

function mob18994_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18994_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18994_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18994, 1, 'mob18994_Action')
RegisterUnitEvent(18994, 2, 'mob18994_Leave')
RegisterUnitEvent(18994, 3, 'mob18994_Kill')
RegisterUnitEvent(18994, 4, 'mob18994_Die')
